package com.atguigu.r2dbc.repositories;

import com.atguigu.r2dbc.entity.StudentDO;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface StudentRepository extends ReactiveCrudRepository<StudentDO, Long> {
//    Mono<Boolean> existsByName(String name);
    Mono<Boolean> deleteByName(String name);
    Flux<StudentDO> findByName(String name);
}
